package com.briup.day10.bean;

import com.briup.day10.bean.Employee;

public class Programmer extends Employee {
    //定义成员的等级
    private String grade;

    public Programmer(String name, String id, String grade) {
        super(id, name);
        this.grade = grade;
    }
    @Override
public  void doWork(){
    System.out.println("我是程序员，等级为: "+grade+",开始工作");
}

    @Override
    public String toString() {
        return "Programmer{" +
                "grade='" + grade + '\'' +
                '}';
    }
}
